<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libnl-3.5.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;17.&nbsp;Networking Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libnftnl.html" title=
          "libnftnl-1.1.5">Prev</a>
          <p>
            libnftnl-1.1.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libnsl.html" title="libnsl-1.2.0">Next</a>
          <p>
            libnsl-1.2.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libnl" name="libnl"></a>libnl-3.5.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libnl
        </h2>
        <p>
          The <span class="application">libnl</span> suite is a collection of
          libraries providing APIs to netlink protocol based Linux kernel
          interfaces.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/thom311/libnl/releases/download/libnl3_5_0/libnl-3.5.0.tar.gz">
                https://github.com/thom311/libnl/releases/download/libnl3_5_0/libnl-3.5.0.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 74ba57b1b1d6f9f92268aa8141d8e8e4
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 948 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 78 MB (with tests and API
                documentation)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.5 SBU (with tests and API
                documentation)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Optional Download
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/thom311/libnl/releases/download/libnl3_5_0/libnl-doc-3.5.0.tar.gz">
                https://github.com/thom311/libnl/releases/download/libnl3_5_0/libnl-doc-3.5.0.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 43a1a6f0c39f32bee05287c06c500bce
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 11 MB
              </p>
            </li>
          </ul>
        </div>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libnl">http://wiki.linuxfromscratch.org/blfs/wiki/libnl</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libnl
        </h2>
        <p>
          Install <span class="application">libnl</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr     \
            --sysconfdir=/etc \
            --disable-static  &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
        <p>
          If you wish to install the API documentation, as the <code class=
          "systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">mkdir -vp /usr/share/doc/libnl-3.5.0 &amp;&amp;
tar -xf ../libnl-doc-3.5.0.tar.gz --strip-components=1 --no-same-owner \
    -C  /usr/share/doc/libnl-3.5.0</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <code class="option">--disable-cli</code>: Use this parameter if
          you don't want to install cli tools provided by the package.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">genl-ctrl-list, idiag-socket-details,
              nl-class-add, nl-class-delete, nl-classid-lookup,
              nl-class-list, nl-cls-add, nl-cls-delete, nl-cls-list,
              nl-link-list, nl-pktloc-lookup, nl-qdisc-add, nl-qdisc-delete,
              nl-qdisc-list, and 48 other helper programs with nl- and nf-
              prefixes</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libnl-3.so, libnl-cli-3.so,
              libnl-genl-3.so, libnl-idiag-3.so, libnl-nf-3.so,
              libnl-route-3.so, libnl-xfrm-3.so, and cli modules under
              /usr/lib/libnl/cli tree</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/etc/libnl, /usr/include/libnl3,
              /usr/lib/libnl, and /usr/share/doc/libnl-3.5.0</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="genl-ctrl-list" name=
                    "genl-ctrl-list"></a><span class="term"><span class=
                    "command"><strong>genl-ctrl-list</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    queries the Generic Netlink controller in the kernel and
                    prints a list of all registered Generic Netlink families
                    including the version of the interface that has been
                    registered.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-class-add" name="nl-class-add"></a><span class=
                    "term"><span class=
                    "command"><strong>nl-class-add</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    adds, updates, or replaces Traffic Classes
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-class-delete" name=
                    "nl-class-delete"></a><span class="term"><span class=
                    "command"><strong>nl-class-delete</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    deletes Traffic Classes
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-classid-lookup" name=
                    "nl-classid-lookup"></a><span class="term"><span class=
                    "command"><strong>nl-classid-lookup</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to resolve qdisc/class names to classid values
                    and vice versa.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-class-list" name=
                    "nl-class-list"></a><span class="term"><span class=
                    "command"><strong>nl-class-list</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    lists Traffic Classes.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-cls-add" name="nl-cls-add"></a><span class=
                    "term"><span class=
                    "command"><strong>nl-cls-add</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    adds a classifier.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-cls-delete" name=
                    "nl-cls-delete"></a><span class="term"><span class=
                    "command"><strong>nl-cls-delete</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    deletes a classifier.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-cls-list" name="nl-cls-list"></a><span class=
                    "term"><span class=
                    "command"><strong>nl-cls-list</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    lists classifiers.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-link-list" name="nl-link-list"></a><span class=
                    "term"><span class=
                    "command"><strong>nl-link-list</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    dumps link attributes.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-pktloc-lookup" name=
                    "nl-pktloc-lookup"></a><span class="term"><span class=
                    "command"><strong>nl-pktloc-lookup</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    allows the lookup of packet location definitions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-qdisc-add" name="nl-qdisc-add"></a><span class=
                    "term"><span class=
                    "command"><strong>nl-qdisc-add</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    adds queueing disciplines (qdiscs) in the kernel.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-qdisc-delete" name=
                    "nl-qdisc-delete"></a><span class="term"><span class=
                    "command"><strong>nl-qdisc-delete</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    deletes queueing disciplines (qdiscs) in the kernel.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nl-qdisc-list" name=
                    "nl-qdisc-list"></a><span class="term"><span class=
                    "command"><strong>nl-qdisc-list</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    lists queueing disciplines (qdiscs) in the kernel.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libnl-lib" name="libnl-lib"></a><span class=
                    "term"><code class="filename">libnl*-3.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    These libraries contain API functions used to access
                    Netlink interfaces in Linux kernel.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 00:43:28 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libnftnl.html" title=
          "libnftnl-1.1.5">Prev</a>
          <p>
            libnftnl-1.1.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libnsl.html" title="libnsl-1.2.0">Next</a>
          <p>
            libnsl-1.2.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
